<?php /* Smarty version 2.6.26, created on 2014-10-25 10:09:17
         compiled from edit.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="<?php echo @__ROOT__; ?>
/Blog/Admin/Org/kindeditor/lang/zh_CN.js"></script>
	<script>
        KindEditor.ready(function(K) {
                window.editor = K.create('#editor_id');
        });
</script>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
	<table width="100%">
		<tr>
			<td class="td1">标题:</td>
			<td><input type="text"  name="title" value="<?php echo $this->_tpl_vars['blog']['title']; ?>
"></td>
		</tr>
		<tr>
			<td><input type="hidden" name="bid" value="<?php echo $this->_tpl_vars['blog']['bid']; ?>
"></td>
		</tr>
		<tr>
			<td class="td1">栏目:</td>
			<td>
				<select name="cid" id="">
				<?php unset($this->_sections['c']);
$this->_sections['c']['loop'] = is_array($_loop=$this->_tpl_vars['cate']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['c']['name'] = 'c';
$this->_sections['c']['show'] = true;
$this->_sections['c']['max'] = $this->_sections['c']['loop'];
$this->_sections['c']['step'] = 1;
$this->_sections['c']['start'] = $this->_sections['c']['step'] > 0 ? 0 : $this->_sections['c']['loop']-1;
if ($this->_sections['c']['show']) {
    $this->_sections['c']['total'] = $this->_sections['c']['loop'];
    if ($this->_sections['c']['total'] == 0)
        $this->_sections['c']['show'] = false;
} else
    $this->_sections['c']['total'] = 0;
if ($this->_sections['c']['show']):

            for ($this->_sections['c']['index'] = $this->_sections['c']['start'], $this->_sections['c']['iteration'] = 1;
                 $this->_sections['c']['iteration'] <= $this->_sections['c']['total'];
                 $this->_sections['c']['index'] += $this->_sections['c']['step'], $this->_sections['c']['iteration']++):
$this->_sections['c']['rownum'] = $this->_sections['c']['iteration'];
$this->_sections['c']['index_prev'] = $this->_sections['c']['index'] - $this->_sections['c']['step'];
$this->_sections['c']['index_next'] = $this->_sections['c']['index'] + $this->_sections['c']['step'];
$this->_sections['c']['first']      = ($this->_sections['c']['iteration'] == 1);
$this->_sections['c']['last']       = ($this->_sections['c']['iteration'] == $this->_sections['c']['total']);
?>
					<option value="<?php echo $this->_tpl_vars['cate'][$this->_sections['c']['index']]['cid']; ?>
" <?php echo $this->_tpl_vars['cate'][$this->_sections['c']['index']]['selected']; ?>
>
					<?php echo $this->_tpl_vars['cate'][$this->_sections['c']['index']]['catname']; ?>

					</option>
				<?php endfor; endif; ?>
				</select>
			</td>
		</tr>
		<tr>
			<td class="td1">缩略图:</td>
			<td>
				<input type="hidden" value="<?php echo $this->_tpl_vars['blog']['thumb']; ?>
" name="hd_thumb">
				<input type="file" name="thumb">
				<?php if ($this->_tpl_vars['blog']['thumb']): ?>
				<img src="<?php echo @__ROOT__; ?>
/<?php echo $this->_tpl_vars['blog']['thumb']; ?>
" height="80px">
				<?php endif; ?>
			</td>
		</tr>
		<tr>
			<td class="td1">正文:</td>
			<td>
				<textarea id="editor_id" name="content" style="width:100%;height:300px;">
				<?php echo $this->_tpl_vars['blog']['content']; ?>

				</textarea>
			</td>
		</tr>
		<tr>
			<td class="td1">点击数:</td>
			<td><input type="text" name="click" value="<?php echo $this->_tpl_vars['blog']['click']; ?>
"></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="发布" class="fabu"></td>
		</tr>
	</table>
	<style>
		table{
			margin: 0px auto;
			background:url(<?php echo @__VIEW__; ?>
/global/images/default/headerbg.png);
			border-radius: 5px;
			box-shadow: 2px 2px 2px #3D4E67;
			color: #fff;
		}
		.td1{
			text-align: center;
		}
		.fabu{
			width: 50px;
			height: 30px;
			color: #485B79;
			cursor: pointer;
			float: right;
			margin-right: 20px;
			margin-bottom: 10px;
		}
	</style>
</form>
</body>
</html>